package com.mallcloud.mall.admin.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

@ApiModel(value = "SysLogDTO", description = "日志查询对象")
@Data
public class SysLogDTO implements Serializable {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty("编号")
	private Long id;

	@NotBlank(message = "日志类型不能为空")
	@ApiModelProperty("日志类型")
	private String logType;

	@NotBlank(message = "日志标题不能为空")
	@ApiModelProperty("日志标题")
	private String title;

	@ApiModelProperty("创建者")
	private String createBy;

	@ApiModelProperty("更新时间")
	private Date updateTime;

	@ApiModelProperty("操作IP地址")
	private String remoteAddr;

	@ApiModelProperty("用户代理")
	private String userAgent;

	@ApiModelProperty("请求URI")
	private String requestUri;

	@ApiModelProperty("操作方式")
	private String method;

	@ApiModelProperty("操作提交的数据")
	private String params;

	@ApiModelProperty("执行时间")
	private Long time;

	@ApiModelProperty("异常信息")
	private String exception;

	@ApiModelProperty("服务ID")
	private String serviceId;

	@ApiModelProperty("创建时间区间 [开始时间，结束时间]")
	private Date[] createTime;

	@ApiModelProperty("租户编号")
	private Long tenantId;

}
